<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>

<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><a href="type.php">类别首页</a><a><?php echo $T['name'];?></a></div>
    <div class="bdr_2">
      <ul class="pic_list">
<?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `typeid`='$typeid'  AND  `thumb`!=''  ORDER BY contentid DESC", 0, 4, array (  'class' => 'url',  'target' => '_blank',  'height' => '87',  'width' => '142',  'titlelen' => '16',));?>
      </ul>
    </div>
<?php echo tag('phpcms', 'tag_content_list', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `typeid`='$typeid'  ORDER BY contentid DESC", $page, 20, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '65',  'showcatname' => '1',));?>
  </div>
  <div id="main_r">
    <!--广告位-->
    <div class="ad_side"><script language="javascript" src="data/js.php?id=5"></script></div>
    <h4>类别导航</h4>
<div id="area">
<?php if(is_array($TYPE)) foreach($TYPE AS $type) { ?>
<a href="type.php?typeid=<?php echo $type['typeid'];?>"><?php echo $type['name'];?></a>
<?php } ?>
</div>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>